package com.hafu.service;
import com.hafu.dao.KhInfoDao;
import com.hafu.model.KhInfo;
import com.sun.org.apache.xpath.internal.operations.Bool;

import java.util.ArrayList;
public class KhInfoService {
    private KhInfoDao khInfoDao = new KhInfoDao();
    public Boolean addKhInfo(KhInfo kh){
        Boolean aBoolean = khInfoDao.addKhInfo(kh);
        return  aBoolean;
    }
    public Boolean deleteHhInfo(int id){
        Boolean aBoolean = khInfoDao.deldeteKhInfo(id);
        return aBoolean;
    }
    public ArrayList<KhInfo> getKhInfoByName(KhInfo kh){
        ArrayList<KhInfo> khInfos = khInfoDao.getKhInfoByName(kh);
        return khInfos;
    }
    public  Boolean updateKhInfo(KhInfo kh){
        Boolean aBoolean = khInfoDao.updateKhInfo(kh);
        return aBoolean;
    }
}
